#include <bits/stdc++.h>
#include "../../tools/tools.h"
using namespace std;

constexpr int INF = 0x7fffffff; // 无穷大
typedef long long ll;

class Solution {
public:
    int countCompleteDayPairs(vector<int>& hours) {
        unordered_map<int, int> map;
        int ans = 0;
        for(auto & h  : hours) {
            h %= 24;
            if(h == 0) ans += map[0];
            else ans += map[24 - h];
            map[h]++;
        }
        return ans;
    }
};

int main(int argc, const char** argv) {
    Solution s;
    // debug(s.numberOfChild(3, 5));
    // debug(s.numberOfChild(5, 6));
    // debug(s.numberOfChild(4, 2));
    return 0;
}
